package com.freecloud.javabasics.design.chain;

/**
 * 具体责任链（检查）
 * @Author: maomao
 * @Date: 2020-01-21 16:00
 */
public class CheckRequestHandler extends RequestHandler {


    public CheckRequestHandler(RequestHandler nextHandler) {
        super(nextHandler);
    }

    @Override
    public void handleRequest(Request request) {
        this.pringHandling(request);
        if(this.nextHandler != null){
            super.handleRequest(request);
        }
    }
}
